package Person.Buffer;

import java.io.*;

public class CopyDemo01 {
    public static void main(String[] args) throws IOException {

        InputStreamReader isr = new InputStreamReader(new FileInputStream("C:\\Users\\win10\\IdeaProjects\\IDEA\\src\\Person\\Buffer\\inputStreamReaderDem0.java"));

        OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("C:\\Users\\win10\\IdeaProjects\\IDEA\\src\\Person\\Buffer\\Copy.java"));


        int ch;
        while((ch=isr.read())!=-1){
            osw.write(ch);
        }
        osw.close();
        isr.close();










    }
}
